package com.example.back.controller;

import com.example.back.entity.HotSearch;
import com.example.back.service.HotSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
public class HotSearchController {
    @Autowired
    private HotSearchService hotSearchService;
    @GetMapping( "/hotSearch")
    public ArrayList<HotSearch> selectUsers(HotSearch hotSearch ){
        return hotSearchService.selectUsers(hotSearch);
    }
}
